﻿using aier.dataaccess.dapper;
using aier.dataaccess.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.business.logic
{
    public class AreaInfoBll
    {
        public AreaInfoDal areaInfoDal { get; set; }


        /// <summary>
        /// 根据市查所属区县 
        /// </summary>
        /// <param name="cityid">市ID</param>
        /// <returns></returns>
        public List<AreaInfoView> QueryAreaByCityId(Guid cityid)
        {
            List<AreaInfoView> areaViews = null;
            areaViews = areaInfoDal.QueryAreaByCityId(cityid);
            return areaViews;
        }
        /// <summary>
        /// 根据区域ID查询区域信息
        /// </summary>
        /// <param name="areaid">区域ID</param>
        /// <returns></returns>
        public AreaInfoView QueryAreaById(Guid areaid)
        {
            AreaInfoView areaInfoView = null;
            areaInfoView = areaInfoDal.QueryAreaById(areaid);
            return areaInfoView;
        }
    }
}
